package com.shk.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.shk.entity.PageResult;
import com.shk.entity.QueryPageBean;

import com.shk.entity.Result;
import com.shk.service.Log4jService;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {
    @Reference
    private Log4jService log4jService;
    @RequestMapping("/findPage")
    private PageResult findPage(@RequestBody QueryPageBean queryPageBean){
        PageResult page = log4jService.findPage(queryPageBean);
        return page;
    }

    @RequestMapping("/deleteById")
    private Result deleteById(Integer id){
        log4jService.deleteById(id);
        return new Result(true,"scuess");
    }
}
